//
//  TGProgressHUD.h
//
//  Created by Dean on 16/9/9.
//  Copyright © 2016年 Dean. All rights reserved.
//

#import "MBProgressHUD.h"
@interface TGProgressHUD : MBProgressHUD
+ (void)showGifAnimation;
+ (void)setEnableTouch;
+ (void)showGifAnimationDelay:(NSInteger)delay;

+ (void)hideGifAnimation;

+ (void)showCustomIcon:(NSString *)iconName Title:(NSString *)title ToView:(UIView *)view;
+ (void)showMBHUDErrorTip:(NSString *)tip;
+ (void)showMBHUDInfoTip:(NSString *)tip;
+ (void)showMBHUDSuccessTip:(NSString *)tip;
+ (void)showMBHUDSmileTip:(NSString *)tip;
+(void)setProgessText:(NSString *)text;

+ (void)showHUDSucessTip:(NSString *)tip;
/**
 显示成功的消息 粗体
 */
+ (void)showHUDSucessTitle:(NSString *)tip;
+ (void)showHUDSucessTip:(NSString *)tip view:(UIView*)view;
+ (void)showHUDTipNetError;

+ (void)showWhiteHUDTip:(NSString *)tip;
+ (void)showHUDTip:(NSString *)tip;
+ (void)showHUDTip:(NSString *)txt view:(UIView *)view;
+ (void)showHUDTip:(NSString *)txt view:(UIView *)view afterDelay:(CGFloat)delay;
+ (NSTimeInterval)displayDurationForString:(NSString*)string;
//动画
+ (void)showHUD:(NSString *)title view:(UIView *)view;
+ (void)showHUD:(NSString *)title view:(UIView *)view afterDelay:(CGFloat)delay;
+ (void)showHUD:(NSString *)title;

+ (void)showMBHUDGifView:(UIView *)view image:(NSString* ) image  afterDelay:(CGFloat)delay;
+ (void)showMBHUDVideoGifView:(UIView *)view image:(NSString* ) image  afterDelay:(CGFloat)delay;
+ (void)showMBHUDGifView:(UIView *)view afterDelay:(CGFloat)delay;
+ (void)showMBHUDGifView:(UIView *)view;

+ (void)hideMBHUD:(BOOL)animation;
+ (void)dismissMPHUD;

+ (void)dismissMBHUD:(UIView *)view;
+ (MBProgressHUD *)newHUD:(NSString *)text view:(UIView *)view delegate:(id<MBProgressHUDDelegate>)delegate;

@end
